<template>
	<view class="u-p-20"><u-parse :content="helpInfo.helpContent"></u-parse></view>
</template>

<script>
export default {
	data() {
		return {
			helpInfo: {}
		};
	},
	onLoad(option) {
		this.getHelpInfo(option.id);
	},
	methods: {
		async getHelpInfo(id) {
			const res = await this.$api.helpDoc.info({ id });
			this.helpInfo = res.data;
			uni.setNavigationBarTitle({
				title: res.data.helpTitle
			});
		}
	}
};
</script>

<style lang="scss"></style>
